import Cookies from 'js-cookie'

const SessionID = 'JSESSIONID'
const TokenKey = 'rememberMe'

export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getSessionId() {
  return Cookies.get(SessionID)
}

export function setSessionId(token) {
  return Cookies.set(SessionID, token)
}

export function removeSessionId() {
  return Cookies.remove(SessionID)
}
